<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: pcl::gpu::DeviceArray2D&lt; T &gt; 模板类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classpcl_1_1gpu_1_1_device_array2_d.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-types">Public 类型</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="classpcl_1_1gpu_1_1_device_array2_d-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">pcl::gpu::DeviceArray2D&lt; T &gt; 模板类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p><b><a class="el" href="classpcl_1_1gpu_1_1_device_array2_d.html" title="DeviceArray2D class">DeviceArray2D</a></b> class  
 <a href="classpcl_1_1gpu_1_1_device_array2_d.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="device__array_8h_source.html">device_array.h</a>&gt;</code></p>
<div class="dynheader">
类 pcl::gpu::DeviceArray2D&lt; T &gt; 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classpcl_1_1gpu_1_1_device_array2_d.png" usemap="#pcl::gpu::DeviceArray2D_3C_20T_20_3E_map" alt=""/>
  <map id="pcl::gpu::DeviceArray2D_3C_20T_20_3E_map" name="pcl::gpu::DeviceArray2D_3C_20T_20_3E_map">
<area href="classpcl_1_1gpu_1_1_device_memory2_d.html" title="DeviceMemory2D class" alt="pcl::gpu::DeviceMemory2D" shape="rect" coords="0,0,182,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public 类型</h2></td></tr>
<tr class="memitem:aca97405c6353bc3928a2ca37fb75ec3f"><td class="memItemLeft" align="right" valign="top"><a id="aca97405c6353bc3928a2ca37fb75ec3f"></a>enum &#160;</td><td class="memItemRight" valign="bottom">{ <b>elem_size</b> = sizeof(T)
 }</td></tr>
<tr class="memdesc:aca97405c6353bc3928a2ca37fb75ec3f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Element size. <br /></td></tr>
<tr class="separator:aca97405c6353bc3928a2ca37fb75ec3f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeb37c909b964c220ea7222ab01f86d4a"><td class="memItemLeft" align="right" valign="top"><a id="aeb37c909b964c220ea7222ab01f86d4a"></a>
typedef T&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_array2_d.html#aeb37c909b964c220ea7222ab01f86d4a">type</a></td></tr>
<tr class="memdesc:aeb37c909b964c220ea7222ab01f86d4a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Element type. <br /></td></tr>
<tr class="separator:aeb37c909b964c220ea7222ab01f86d4a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:ab4b26e88428124ae66da23dda2cc8d17"><td class="memItemLeft" align="right" valign="top"><a id="ab4b26e88428124ae66da23dda2cc8d17"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_array2_d.html#ab4b26e88428124ae66da23dda2cc8d17">DeviceArray2D</a> ()</td></tr>
<tr class="memdesc:ab4b26e88428124ae66da23dda2cc8d17"><td class="mdescLeft">&#160;</td><td class="mdescRight">Empty constructor. <br /></td></tr>
<tr class="separator:ab4b26e88428124ae66da23dda2cc8d17"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a94bb2ece46527193a5dbfb6ae0c83af9"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_array2_d.html#a94bb2ece46527193a5dbfb6ae0c83af9">DeviceArray2D</a> (int <a class="el" href="classpcl_1_1gpu_1_1_device_array2_d.html#a4080acdcf546b3a92bcabc64efe9e146">rows</a>, int <a class="el" href="classpcl_1_1gpu_1_1_device_array2_d.html#a742e5df59300e02c16e5d60ff70507e9">cols</a>)</td></tr>
<tr class="memdesc:a94bb2ece46527193a5dbfb6ae0c83af9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Allocates internal buffer in GPU memory  <a href="classpcl_1_1gpu_1_1_device_array2_d.html#a94bb2ece46527193a5dbfb6ae0c83af9">更多...</a><br /></td></tr>
<tr class="separator:a94bb2ece46527193a5dbfb6ae0c83af9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1b4d66f501b7a2564de038fd9a786597"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_array2_d.html#a1b4d66f501b7a2564de038fd9a786597">DeviceArray2D</a> (int <a class="el" href="classpcl_1_1gpu_1_1_device_array2_d.html#a4080acdcf546b3a92bcabc64efe9e146">rows</a>, int <a class="el" href="classpcl_1_1gpu_1_1_device_array2_d.html#a742e5df59300e02c16e5d60ff70507e9">cols</a>, void *data, size_t stepBytes)</td></tr>
<tr class="memdesc:a1b4d66f501b7a2564de038fd9a786597"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes with user allocated buffer. Reference counting is disabled in this case.  <a href="classpcl_1_1gpu_1_1_device_array2_d.html#a1b4d66f501b7a2564de038fd9a786597">更多...</a><br /></td></tr>
<tr class="separator:a1b4d66f501b7a2564de038fd9a786597"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a283e4552af83e048d46b1195c106fc74"><td class="memItemLeft" align="right" valign="top"><a id="a283e4552af83e048d46b1195c106fc74"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_array2_d.html#a283e4552af83e048d46b1195c106fc74">DeviceArray2D</a> (const <a class="el" href="classpcl_1_1gpu_1_1_device_array2_d.html">DeviceArray2D</a> &amp;other)</td></tr>
<tr class="memdesc:a283e4552af83e048d46b1195c106fc74"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copy constructor. Just increments reference counter. <br /></td></tr>
<tr class="separator:a283e4552af83e048d46b1195c106fc74"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab10255289085781049e9797166e7bead"><td class="memItemLeft" align="right" valign="top"><a id="ab10255289085781049e9797166e7bead"></a>
<a class="el" href="classpcl_1_1gpu_1_1_device_array2_d.html">DeviceArray2D</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_array2_d.html#ab10255289085781049e9797166e7bead">operator=</a> (const <a class="el" href="classpcl_1_1gpu_1_1_device_array2_d.html">DeviceArray2D</a> &amp;other)</td></tr>
<tr class="memdesc:ab10255289085781049e9797166e7bead"><td class="mdescLeft">&#160;</td><td class="mdescRight">Assigment operator. Just increments reference counter. <br /></td></tr>
<tr class="separator:ab10255289085781049e9797166e7bead"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7d08a86e9025af4257e382b0c4813bb8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_array2_d.html#a7d08a86e9025af4257e382b0c4813bb8">create</a> (int <a class="el" href="classpcl_1_1gpu_1_1_device_array2_d.html#a4080acdcf546b3a92bcabc64efe9e146">rows</a>, int <a class="el" href="classpcl_1_1gpu_1_1_device_array2_d.html#a742e5df59300e02c16e5d60ff70507e9">cols</a>)</td></tr>
<tr class="memdesc:a7d08a86e9025af4257e382b0c4813bb8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Allocates internal buffer in GPU memory. If internal buffer was created before the function recreates it with new size. If new and old sizes are equal it does nothing.  <a href="classpcl_1_1gpu_1_1_device_array2_d.html#a7d08a86e9025af4257e382b0c4813bb8">更多...</a><br /></td></tr>
<tr class="separator:a7d08a86e9025af4257e382b0c4813bb8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6c03f8040c494e9dc611b1b3631265f3"><td class="memItemLeft" align="right" valign="top"><a id="a6c03f8040c494e9dc611b1b3631265f3"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_array2_d.html#a6c03f8040c494e9dc611b1b3631265f3">release</a> ()</td></tr>
<tr class="memdesc:a6c03f8040c494e9dc611b1b3631265f3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Decrements reference counter and releases internal buffer if needed. <br /></td></tr>
<tr class="separator:a6c03f8040c494e9dc611b1b3631265f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adec6184af572be3d9d5d5857468a0ea1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_array2_d.html#adec6184af572be3d9d5d5857468a0ea1">copyTo</a> (<a class="el" href="classpcl_1_1gpu_1_1_device_array2_d.html">DeviceArray2D</a> &amp;other) const</td></tr>
<tr class="memdesc:adec6184af572be3d9d5d5857468a0ea1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Performs data copying. If destination size differs it will be reallocated.  <a href="classpcl_1_1gpu_1_1_device_array2_d.html#adec6184af572be3d9d5d5857468a0ea1">更多...</a><br /></td></tr>
<tr class="separator:adec6184af572be3d9d5d5857468a0ea1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab81307510c41ba799ad755ba3ca9ec65"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_array2_d.html#ab81307510c41ba799ad755ba3ca9ec65">upload</a> (const void *host_ptr, size_t host_step, int <a class="el" href="classpcl_1_1gpu_1_1_device_array2_d.html#a4080acdcf546b3a92bcabc64efe9e146">rows</a>, int <a class="el" href="classpcl_1_1gpu_1_1_device_array2_d.html#a742e5df59300e02c16e5d60ff70507e9">cols</a>)</td></tr>
<tr class="memdesc:ab81307510c41ba799ad755ba3ca9ec65"><td class="mdescLeft">&#160;</td><td class="mdescRight">Uploads data to internal buffer in GPU memory. It calls <a class="el" href="classpcl_1_1gpu_1_1_device_array2_d.html#a7d08a86e9025af4257e382b0c4813bb8" title="Allocates internal buffer in GPU memory. If internal buffer was created before the function recreates...">create()</a> inside to ensure that intenal buffer size is enough.  <a href="classpcl_1_1gpu_1_1_device_array2_d.html#ab81307510c41ba799ad755ba3ca9ec65">更多...</a><br /></td></tr>
<tr class="separator:ab81307510c41ba799ad755ba3ca9ec65"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adcab7e802fa4cc9df4cfd712d65e529b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_array2_d.html#adcab7e802fa4cc9df4cfd712d65e529b">download</a> (void *host_ptr, size_t host_step) const</td></tr>
<tr class="memdesc:adcab7e802fa4cc9df4cfd712d65e529b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Downloads data from internal buffer to CPU memory. User is resposible for correct host buffer size.  <a href="classpcl_1_1gpu_1_1_device_array2_d.html#adcab7e802fa4cc9df4cfd712d65e529b">更多...</a><br /></td></tr>
<tr class="separator:adcab7e802fa4cc9df4cfd712d65e529b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4eacca5621b230625b93ea5daa40cc38"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_array2_d.html#a4eacca5621b230625b93ea5daa40cc38">swap</a> (<a class="el" href="classpcl_1_1gpu_1_1_device_array2_d.html">DeviceArray2D</a> &amp;other_arg)</td></tr>
<tr class="memdesc:a4eacca5621b230625b93ea5daa40cc38"><td class="mdescLeft">&#160;</td><td class="mdescRight">Performs swap of data pointed with another device array.  <a href="classpcl_1_1gpu_1_1_device_array2_d.html#a4eacca5621b230625b93ea5daa40cc38">更多...</a><br /></td></tr>
<tr class="separator:a4eacca5621b230625b93ea5daa40cc38"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1efe4af839046f6f3a481befc6494d7b"><td class="memTemplParams" colspan="2">template&lt;class A &gt; </td></tr>
<tr class="memitem:a1efe4af839046f6f3a481befc6494d7b"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_array2_d.html#a1efe4af839046f6f3a481befc6494d7b">upload</a> (const std::vector&lt; T, A &gt; &amp;data, int <a class="el" href="classpcl_1_1gpu_1_1_device_array2_d.html#a742e5df59300e02c16e5d60ff70507e9">cols</a>)</td></tr>
<tr class="memdesc:a1efe4af839046f6f3a481befc6494d7b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Uploads data to internal buffer in GPU memory. It calls <a class="el" href="classpcl_1_1gpu_1_1_device_array2_d.html#a7d08a86e9025af4257e382b0c4813bb8" title="Allocates internal buffer in GPU memory. If internal buffer was created before the function recreates...">create()</a> inside to ensure that intenal buffer size is enough.  <a href="classpcl_1_1gpu_1_1_device_array2_d.html#a1efe4af839046f6f3a481befc6494d7b">更多...</a><br /></td></tr>
<tr class="separator:a1efe4af839046f6f3a481befc6494d7b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acc5f04bb3c482a9732211e00610610ce"><td class="memTemplParams" colspan="2">template&lt;class A &gt; </td></tr>
<tr class="memitem:acc5f04bb3c482a9732211e00610610ce"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_array2_d.html#acc5f04bb3c482a9732211e00610610ce">download</a> (std::vector&lt; T, A &gt; &amp;data, int &amp;<a class="el" href="classpcl_1_1gpu_1_1_device_array2_d.html#a742e5df59300e02c16e5d60ff70507e9">cols</a>) const</td></tr>
<tr class="memdesc:acc5f04bb3c482a9732211e00610610ce"><td class="mdescLeft">&#160;</td><td class="mdescRight">Downloads data from internal buffer to CPU memory  <a href="classpcl_1_1gpu_1_1_device_array2_d.html#acc5f04bb3c482a9732211e00610610ce">更多...</a><br /></td></tr>
<tr class="separator:acc5f04bb3c482a9732211e00610610ce"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a88a762589a04a71d577ec51521a2eaa9"><td class="memItemLeft" align="right" valign="top">T *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_array2_d.html#a88a762589a04a71d577ec51521a2eaa9">ptr</a> (int y=0)</td></tr>
<tr class="memdesc:a88a762589a04a71d577ec51521a2eaa9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns pointer to given row in internal buffer.  <a href="classpcl_1_1gpu_1_1_device_array2_d.html#a88a762589a04a71d577ec51521a2eaa9">更多...</a><br /></td></tr>
<tr class="separator:a88a762589a04a71d577ec51521a2eaa9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5210d69162bdac03727c46456f0a9324"><td class="memItemLeft" align="right" valign="top">const T *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_array2_d.html#a5210d69162bdac03727c46456f0a9324">ptr</a> (int y=0) const</td></tr>
<tr class="memdesc:a5210d69162bdac03727c46456f0a9324"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns const pointer to given row in internal buffer.  <a href="classpcl_1_1gpu_1_1_device_array2_d.html#a5210d69162bdac03727c46456f0a9324">更多...</a><br /></td></tr>
<tr class="separator:a5210d69162bdac03727c46456f0a9324"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a86d50b64a5b1e3aab3802d15a3f50260"><td class="memItemLeft" align="right" valign="top"><a id="a86d50b64a5b1e3aab3802d15a3f50260"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_array2_d.html#a86d50b64a5b1e3aab3802d15a3f50260">operator T*</a> ()</td></tr>
<tr class="memdesc:a86d50b64a5b1e3aab3802d15a3f50260"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns pointer for internal buffer in GPU memory. <br /></td></tr>
<tr class="separator:a86d50b64a5b1e3aab3802d15a3f50260"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab00747ab88ca7f6d0a68ec91e5c9610f"><td class="memItemLeft" align="right" valign="top"><a id="ab00747ab88ca7f6d0a68ec91e5c9610f"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_array2_d.html#ab00747ab88ca7f6d0a68ec91e5c9610f">operator const T *</a> () const</td></tr>
<tr class="memdesc:ab00747ab88ca7f6d0a68ec91e5c9610f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns const pointer for internal buffer in GPU memory. <br /></td></tr>
<tr class="separator:ab00747ab88ca7f6d0a68ec91e5c9610f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a742e5df59300e02c16e5d60ff70507e9"><td class="memItemLeft" align="right" valign="top"><a id="a742e5df59300e02c16e5d60ff70507e9"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_array2_d.html#a742e5df59300e02c16e5d60ff70507e9">cols</a> () const</td></tr>
<tr class="memdesc:a742e5df59300e02c16e5d60ff70507e9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns number of elements in each row. <br /></td></tr>
<tr class="separator:a742e5df59300e02c16e5d60ff70507e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4080acdcf546b3a92bcabc64efe9e146"><td class="memItemLeft" align="right" valign="top"><a id="a4080acdcf546b3a92bcabc64efe9e146"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_array2_d.html#a4080acdcf546b3a92bcabc64efe9e146">rows</a> () const</td></tr>
<tr class="memdesc:a4080acdcf546b3a92bcabc64efe9e146"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns number of rows. <br /></td></tr>
<tr class="separator:a4080acdcf546b3a92bcabc64efe9e146"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad37b25b78c567b9b219a37b48a7c3f0f"><td class="memItemLeft" align="right" valign="top"><a id="ad37b25b78c567b9b219a37b48a7c3f0f"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_array2_d.html#ad37b25b78c567b9b219a37b48a7c3f0f">elem_step</a> () const</td></tr>
<tr class="memdesc:ad37b25b78c567b9b219a37b48a7c3f0f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns step in elements. <br /></td></tr>
<tr class="separator:ad37b25b78c567b9b219a37b48a7c3f0f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classpcl_1_1gpu_1_1_device_memory2_d')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html">pcl::gpu::DeviceMemory2D</a></td></tr>
<tr class="memitem:aec937e87ebc5d55c51106d3d5cae57e8 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="memItemLeft" align="right" valign="top"><a id="aec937e87ebc5d55c51106d3d5cae57e8"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html#aec937e87ebc5d55c51106d3d5cae57e8">DeviceMemory2D</a> ()</td></tr>
<tr class="memdesc:aec937e87ebc5d55c51106d3d5cae57e8 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Empty constructor. <br /></td></tr>
<tr class="separator:aec937e87ebc5d55c51106d3d5cae57e8 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4360ec5687b7f321e0740b9a2817ad52 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="memItemLeft" align="right" valign="top"><a id="a4360ec5687b7f321e0740b9a2817ad52"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a4360ec5687b7f321e0740b9a2817ad52">~DeviceMemory2D</a> ()</td></tr>
<tr class="memdesc:a4360ec5687b7f321e0740b9a2817ad52 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:a4360ec5687b7f321e0740b9a2817ad52 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4e6bb28aab480fbad3c8bcd0b44c84da inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a4e6bb28aab480fbad3c8bcd0b44c84da">DeviceMemory2D</a> (int rows_arg, int colsBytes_arg)</td></tr>
<tr class="memdesc:a4e6bb28aab480fbad3c8bcd0b44c84da inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Allocates internal buffer in GPU memory  <a href="classpcl_1_1gpu_1_1_device_memory2_d.html#a4e6bb28aab480fbad3c8bcd0b44c84da">更多...</a><br /></td></tr>
<tr class="separator:a4e6bb28aab480fbad3c8bcd0b44c84da inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a999d25c49cdcb02383e0a05212289e00 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a999d25c49cdcb02383e0a05212289e00">DeviceMemory2D</a> (int rows_arg, int colsBytes_arg, void *data_arg, size_t step_arg)</td></tr>
<tr class="memdesc:a999d25c49cdcb02383e0a05212289e00 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes with user allocated buffer. Reference counting is disabled in this case.  <a href="classpcl_1_1gpu_1_1_device_memory2_d.html#a999d25c49cdcb02383e0a05212289e00">更多...</a><br /></td></tr>
<tr class="separator:a999d25c49cdcb02383e0a05212289e00 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae70f381a982307b17e0af3f915b14449 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="memItemLeft" align="right" valign="top"><a id="ae70f381a982307b17e0af3f915b14449"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html#ae70f381a982307b17e0af3f915b14449">DeviceMemory2D</a> (const <a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html">DeviceMemory2D</a> &amp;other_arg)</td></tr>
<tr class="memdesc:ae70f381a982307b17e0af3f915b14449 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copy constructor. Just increments reference counter. <br /></td></tr>
<tr class="separator:ae70f381a982307b17e0af3f915b14449 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac5f7ab83f0c64c4055924ddeadc84c72 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="memItemLeft" align="right" valign="top"><a id="ac5f7ab83f0c64c4055924ddeadc84c72"></a>
<a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html">DeviceMemory2D</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html#ac5f7ab83f0c64c4055924ddeadc84c72">operator=</a> (const <a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html">DeviceMemory2D</a> &amp;other_arg)</td></tr>
<tr class="memdesc:ac5f7ab83f0c64c4055924ddeadc84c72 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Assigment operator. Just increments reference counter. <br /></td></tr>
<tr class="separator:ac5f7ab83f0c64c4055924ddeadc84c72 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4e03c08aabf9c020cbe3d92d2b3434ab inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a4e03c08aabf9c020cbe3d92d2b3434ab">create</a> (int rows_arg, int colsBytes_arg)</td></tr>
<tr class="memdesc:a4e03c08aabf9c020cbe3d92d2b3434ab inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Allocates internal buffer in GPU memory. If internal buffer was created before the function recreates it with new size. If new and old sizes are equal it does nothing.  <a href="classpcl_1_1gpu_1_1_device_memory2_d.html#a4e03c08aabf9c020cbe3d92d2b3434ab">更多...</a><br /></td></tr>
<tr class="separator:a4e03c08aabf9c020cbe3d92d2b3434ab inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae81f9c2cf5e6c5f542a58a05b431a30c inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="memItemLeft" align="right" valign="top"><a id="ae81f9c2cf5e6c5f542a58a05b431a30c"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html#ae81f9c2cf5e6c5f542a58a05b431a30c">release</a> ()</td></tr>
<tr class="memdesc:ae81f9c2cf5e6c5f542a58a05b431a30c inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Decrements reference counter and releases internal buffer if needed. <br /></td></tr>
<tr class="separator:ae81f9c2cf5e6c5f542a58a05b431a30c inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af67bb317d0e95c5999927b90071b1164 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html#af67bb317d0e95c5999927b90071b1164">copyTo</a> (<a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html">DeviceMemory2D</a> &amp;other) const</td></tr>
<tr class="memdesc:af67bb317d0e95c5999927b90071b1164 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Performs data copying. If destination size differs it will be reallocated.  <a href="classpcl_1_1gpu_1_1_device_memory2_d.html#af67bb317d0e95c5999927b90071b1164">更多...</a><br /></td></tr>
<tr class="separator:af67bb317d0e95c5999927b90071b1164 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af0d12aab6d2bea03fc7dcdd5974d3bf4 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html#af0d12aab6d2bea03fc7dcdd5974d3bf4">upload</a> (const void *host_ptr_arg, size_t host_step_arg, int rows_arg, int colsBytes_arg)</td></tr>
<tr class="memdesc:af0d12aab6d2bea03fc7dcdd5974d3bf4 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Uploads data to internal buffer in GPU memory. It calls <a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a4e03c08aabf9c020cbe3d92d2b3434ab" title="Allocates internal buffer in GPU memory. If internal buffer was created before the function recreates...">create()</a> inside to ensure that intenal buffer size is enough.  <a href="classpcl_1_1gpu_1_1_device_memory2_d.html#af0d12aab6d2bea03fc7dcdd5974d3bf4">更多...</a><br /></td></tr>
<tr class="separator:af0d12aab6d2bea03fc7dcdd5974d3bf4 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a11f9cbf4e4809268d52323e6e52a63f3 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a11f9cbf4e4809268d52323e6e52a63f3">download</a> (void *host_ptr_arg, size_t host_step_arg) const</td></tr>
<tr class="memdesc:a11f9cbf4e4809268d52323e6e52a63f3 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Downloads data from internal buffer to CPU memory. User is resposible for correct host buffer size.  <a href="classpcl_1_1gpu_1_1_device_memory2_d.html#a11f9cbf4e4809268d52323e6e52a63f3">更多...</a><br /></td></tr>
<tr class="separator:a11f9cbf4e4809268d52323e6e52a63f3 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a17a2b3c9f026bbf7438c01cd905e0003 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a17a2b3c9f026bbf7438c01cd905e0003">swap</a> (<a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html">DeviceMemory2D</a> &amp;other_arg)</td></tr>
<tr class="memdesc:a17a2b3c9f026bbf7438c01cd905e0003 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Performs swap of data pointed with another device memory.  <a href="classpcl_1_1gpu_1_1_device_memory2_d.html#a17a2b3c9f026bbf7438c01cd905e0003">更多...</a><br /></td></tr>
<tr class="separator:a17a2b3c9f026bbf7438c01cd905e0003 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a169f6a06520be3da61929ee1a0d1c097 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="memTemplParams" colspan="2">template&lt;class T &gt; </td></tr>
<tr class="memitem:a169f6a06520be3da61929ee1a0d1c097 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="memTemplItemLeft" align="right" valign="top">T *&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a169f6a06520be3da61929ee1a0d1c097">ptr</a> (int y_arg=0)</td></tr>
<tr class="memdesc:a169f6a06520be3da61929ee1a0d1c097 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns pointer to given row in internal buffer.  <a href="classpcl_1_1gpu_1_1_device_memory2_d.html#a169f6a06520be3da61929ee1a0d1c097">更多...</a><br /></td></tr>
<tr class="separator:a169f6a06520be3da61929ee1a0d1c097 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7b8de8b0f1fabeddd77ed68b7e5ce01e inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="memTemplParams" colspan="2">template&lt;class T &gt; </td></tr>
<tr class="memitem:a7b8de8b0f1fabeddd77ed68b7e5ce01e inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="memTemplItemLeft" align="right" valign="top">const T *&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a7b8de8b0f1fabeddd77ed68b7e5ce01e">ptr</a> (int y_arg=0) const</td></tr>
<tr class="memdesc:a7b8de8b0f1fabeddd77ed68b7e5ce01e inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns constant pointer to given row in internal buffer.  <a href="classpcl_1_1gpu_1_1_device_memory2_d.html#a7b8de8b0f1fabeddd77ed68b7e5ce01e">更多...</a><br /></td></tr>
<tr class="separator:a7b8de8b0f1fabeddd77ed68b7e5ce01e inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6fe9254be3ea932c63099ecdb7c72e67 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="memTemplParams" colspan="2"><a id="a6fe9254be3ea932c63099ecdb7c72e67"></a>
template&lt;class U &gt; </td></tr>
<tr class="memitem:a6fe9254be3ea932c63099ecdb7c72e67 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="memTemplItemLeft" align="right" valign="top">&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a6fe9254be3ea932c63099ecdb7c72e67">operator PtrStep&lt; U &gt;</a> () const</td></tr>
<tr class="memdesc:a6fe9254be3ea932c63099ecdb7c72e67 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Conversion to <a class="el" href="structpcl_1_1gpu_1_1_ptr_step.html">PtrStep</a> for passing to kernel functions. <br /></td></tr>
<tr class="separator:a6fe9254be3ea932c63099ecdb7c72e67 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aca2f9dc134a54709ac9084a6435b6c12 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="memTemplParams" colspan="2"><a id="aca2f9dc134a54709ac9084a6435b6c12"></a>
template&lt;class U &gt; </td></tr>
<tr class="memitem:aca2f9dc134a54709ac9084a6435b6c12 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="memTemplItemLeft" align="right" valign="top">&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html#aca2f9dc134a54709ac9084a6435b6c12">operator PtrStepSz&lt; U &gt;</a> () const</td></tr>
<tr class="memdesc:aca2f9dc134a54709ac9084a6435b6c12 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Conversion to <a class="el" href="structpcl_1_1gpu_1_1_ptr_step_sz.html">PtrStepSz</a> for passing to kernel functions. <br /></td></tr>
<tr class="separator:aca2f9dc134a54709ac9084a6435b6c12 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a175782f2282dae717c1e6bafd54336b1 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="memItemLeft" align="right" valign="top"><a id="a175782f2282dae717c1e6bafd54336b1"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a175782f2282dae717c1e6bafd54336b1">empty</a> () const</td></tr>
<tr class="memdesc:a175782f2282dae717c1e6bafd54336b1 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if unallocated otherwise false. <br /></td></tr>
<tr class="separator:a175782f2282dae717c1e6bafd54336b1 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4fc62bd30bd21517dce88ac203d34814 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="memItemLeft" align="right" valign="top"><a id="a4fc62bd30bd21517dce88ac203d34814"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a4fc62bd30bd21517dce88ac203d34814">colsBytes</a> () const</td></tr>
<tr class="memdesc:a4fc62bd30bd21517dce88ac203d34814 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns number of bytes in each row. <br /></td></tr>
<tr class="separator:a4fc62bd30bd21517dce88ac203d34814 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8f7adab9d87fe92576886591df5a5aa1 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="memItemLeft" align="right" valign="top"><a id="a8f7adab9d87fe92576886591df5a5aa1"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a8f7adab9d87fe92576886591df5a5aa1">rows</a> () const</td></tr>
<tr class="memdesc:a8f7adab9d87fe92576886591df5a5aa1 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns number of rows. <br /></td></tr>
<tr class="separator:a8f7adab9d87fe92576886591df5a5aa1 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a526d188921b4d2d5e01a0911395b8b6e inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="memItemLeft" align="right" valign="top"><a id="a526d188921b4d2d5e01a0911395b8b6e"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a526d188921b4d2d5e01a0911395b8b6e">step</a> () const</td></tr>
<tr class="memdesc:a526d188921b4d2d5e01a0911395b8b6e inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns stride between two consecutive rows in bytes for internal buffer. Step is stored always and everywhere in bytes!!! <br /></td></tr>
<tr class="separator:a526d188921b4d2d5e01a0911395b8b6e inherit pub_methods_classpcl_1_1gpu_1_1_device_memory2_d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><h3>template&lt;class T&gt;<br />
class pcl::gpu::DeviceArray2D&lt; T &gt;</h3>

<p><b><a class="el" href="classpcl_1_1gpu_1_1_device_array2_d.html" title="DeviceArray2D class">DeviceArray2D</a></b> class </p>
<dl class="section note"><dt>注解</dt><dd>Typed container for pitched GPU memory with reference counting. <br  />
</dd></dl>
<dl class="section author"><dt>作者</dt><dd>Anatoly Baksheev </dd></dl>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="a94bb2ece46527193a5dbfb6ae0c83af9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a94bb2ece46527193a5dbfb6ae0c83af9">&#9670;&nbsp;</a></span>DeviceArray2D() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classpcl_1_1gpu_1_1_device_array2_d.html">pcl::gpu::DeviceArray2D</a>&lt; T &gt;::<a class="el" href="classpcl_1_1gpu_1_1_device_array2_d.html">DeviceArray2D</a> </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>rows</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>cols</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Allocates internal buffer in GPU memory </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">rows</td><td>number of rows to allocate </td></tr>
    <tr><td class="paramname">cols</td><td>number of elements in each row </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;: <a class="code" href="classpcl_1_1gpu_1_1_device_memory2_d.html#aec937e87ebc5d55c51106d3d5cae57e8">DeviceMemory2D</a>(<a class="code" href="classpcl_1_1gpu_1_1_device_array2_d.html#a4080acdcf546b3a92bcabc64efe9e146">rows</a>, <a class="code" href="classpcl_1_1gpu_1_1_device_array2_d.html#a742e5df59300e02c16e5d60ff70507e9">cols</a> * elem_size) {}</div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_array2_d_html_a4080acdcf546b3a92bcabc64efe9e146"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_array2_d.html#a4080acdcf546b3a92bcabc64efe9e146">pcl::gpu::DeviceArray2D::rows</a></div><div class="ttdeci">int rows() const</div><div class="ttdoc">Returns number of rows.</div><div class="ttdef"><b>Definition:</b> device_array.hpp:110</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_array2_d_html_a742e5df59300e02c16e5d60ff70507e9"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_array2_d.html#a742e5df59300e02c16e5d60ff70507e9">pcl::gpu::DeviceArray2D::cols</a></div><div class="ttdeci">int cols() const</div><div class="ttdoc">Returns number of elements in each row.</div><div class="ttdef"><b>Definition:</b> device_array.hpp:109</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory2_d_html_aec937e87ebc5d55c51106d3d5cae57e8"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory2_d.html#aec937e87ebc5d55c51106d3d5cae57e8">pcl::gpu::DeviceMemory2D::DeviceMemory2D</a></div><div class="ttdeci">DeviceMemory2D()</div><div class="ttdoc">Empty constructor.</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a1b4d66f501b7a2564de038fd9a786597"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1b4d66f501b7a2564de038fd9a786597">&#9670;&nbsp;</a></span>DeviceArray2D() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classpcl_1_1gpu_1_1_device_array2_d.html">pcl::gpu::DeviceArray2D</a>&lt; T &gt;::<a class="el" href="classpcl_1_1gpu_1_1_device_array2_d.html">DeviceArray2D</a> </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>rows</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>cols</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>stepBytes</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Initializes with user allocated buffer. Reference counting is disabled in this case. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">rows</td><td>number of rows </td></tr>
    <tr><td class="paramname">cols</td><td>number of elements in each row </td></tr>
    <tr><td class="paramname">data</td><td>pointer to buffer </td></tr>
    <tr><td class="paramname">stepBytes</td><td>stride between two consecutive rows in bytes </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;: <a class="code" href="classpcl_1_1gpu_1_1_device_memory2_d.html#aec937e87ebc5d55c51106d3d5cae57e8">DeviceMemory2D</a>(<a class="code" href="classpcl_1_1gpu_1_1_device_array2_d.html#a4080acdcf546b3a92bcabc64efe9e146">rows</a>, <a class="code" href="classpcl_1_1gpu_1_1_device_array2_d.html#a742e5df59300e02c16e5d60ff70507e9">cols</a> * elem_size, data, stepBytes) {}</div>
</div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="adec6184af572be3d9d5d5857468a0ea1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adec6184af572be3d9d5d5857468a0ea1">&#9670;&nbsp;</a></span>copyTo()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classpcl_1_1gpu_1_1_device_array2_d.html">pcl::gpu::DeviceArray2D</a>&lt; T &gt;::copyTo </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classpcl_1_1gpu_1_1_device_array2_d.html">DeviceArray2D</a>&lt; T &gt; &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Performs data copying. If destination size differs it will be reallocated. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">other</td><td>destination container </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;{ <a class="code" href="classpcl_1_1gpu_1_1_device_memory2_d.html#af67bb317d0e95c5999927b90071b1164">DeviceMemory2D::copyTo</a>(other); }</div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory2_d_html_af67bb317d0e95c5999927b90071b1164"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory2_d.html#af67bb317d0e95c5999927b90071b1164">pcl::gpu::DeviceMemory2D::copyTo</a></div><div class="ttdeci">void copyTo(DeviceMemory2D &amp;other) const</div><div class="ttdoc">Performs data copying. If destination size differs it will be reallocated.</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a7d08a86e9025af4257e382b0c4813bb8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7d08a86e9025af4257e382b0c4813bb8">&#9670;&nbsp;</a></span>create()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classpcl_1_1gpu_1_1_device_array2_d.html">pcl::gpu::DeviceArray2D</a>&lt; T &gt;::create </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>rows</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>cols</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Allocates internal buffer in GPU memory. If internal buffer was created before the function recreates it with new size. If new and old sizes are equal it does nothing. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">rows</td><td>number of rows to allocate </td></tr>
    <tr><td class="paramname">cols</td><td>number of elements in each row </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;{ <a class="code" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a4e03c08aabf9c020cbe3d92d2b3434ab">DeviceMemory2D::create</a>(<a class="code" href="classpcl_1_1gpu_1_1_device_array2_d.html#a4080acdcf546b3a92bcabc64efe9e146">rows</a>, <a class="code" href="classpcl_1_1gpu_1_1_device_array2_d.html#a742e5df59300e02c16e5d60ff70507e9">cols</a> * elem_size); }</div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory2_d_html_a4e03c08aabf9c020cbe3d92d2b3434ab"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory2_d.html#a4e03c08aabf9c020cbe3d92d2b3434ab">pcl::gpu::DeviceMemory2D::create</a></div><div class="ttdeci">void create(int rows_arg, int colsBytes_arg)</div><div class="ttdoc">Allocates internal buffer in GPU memory. If internal buffer was created before the function recreates...</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="acc5f04bb3c482a9732211e00610610ce"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acc5f04bb3c482a9732211e00610610ce">&#9670;&nbsp;</a></span>download() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
<div class="memtemplate">
template&lt;class A &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classpcl_1_1gpu_1_1_device_array2_d.html">pcl::gpu::DeviceArray2D</a>&lt; T &gt;::download </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; T, A &gt; &amp;&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int &amp;&#160;</td>
          <td class="paramname"><em>cols</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Downloads data from internal buffer to CPU memory </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">data</td><td>host vector to download to <br  />
 </td></tr>
    <tr><td class="paramname">cols</td><td>Output stride in elements between two consecutive rows for host vector. </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;{ <a class="code" href="classpcl_1_1gpu_1_1_device_array2_d.html#ad37b25b78c567b9b219a37b48a7c3f0f">elem_step</a> = <a class="code" href="classpcl_1_1gpu_1_1_device_array2_d.html#a742e5df59300e02c16e5d60ff70507e9">cols</a>(); data.resize(<a class="code" href="classpcl_1_1gpu_1_1_device_array2_d.html#a742e5df59300e02c16e5d60ff70507e9">cols</a>() * <a class="code" href="classpcl_1_1gpu_1_1_device_array2_d.html#a4080acdcf546b3a92bcabc64efe9e146">rows</a>()); <span class="keywordflow">if</span> (!data.empty()) <a class="code" href="classpcl_1_1gpu_1_1_device_array2_d.html#adcab7e802fa4cc9df4cfd712d65e529b">download</a>(&amp;data[0], <a class="code" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a4fc62bd30bd21517dce88ac203d34814">colsBytes</a>());  }</div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_array2_d_html_ad37b25b78c567b9b219a37b48a7c3f0f"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_array2_d.html#ad37b25b78c567b9b219a37b48a7c3f0f">pcl::gpu::DeviceArray2D::elem_step</a></div><div class="ttdeci">size_t elem_step() const</div><div class="ttdoc">Returns step in elements.</div><div class="ttdef"><b>Definition:</b> device_array.hpp:112</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_array2_d_html_adcab7e802fa4cc9df4cfd712d65e529b"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_array2_d.html#adcab7e802fa4cc9df4cfd712d65e529b">pcl::gpu::DeviceArray2D::download</a></div><div class="ttdeci">void download(void *host_ptr, size_t host_step) const</div><div class="ttdoc">Downloads data from internal buffer to CPU memory. User is resposible for correct host buffer size.</div><div class="ttdef"><b>Definition:</b> device_array.hpp:92</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory2_d_html_a4fc62bd30bd21517dce88ac203d34814"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory2_d.html#a4fc62bd30bd21517dce88ac203d34814">pcl::gpu::DeviceMemory2D::colsBytes</a></div><div class="ttdeci">int colsBytes() const</div><div class="ttdoc">Returns number of bytes in each row.</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="adcab7e802fa4cc9df4cfd712d65e529b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adcab7e802fa4cc9df4cfd712d65e529b">&#9670;&nbsp;</a></span>download() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classpcl_1_1gpu_1_1_device_array2_d.html">pcl::gpu::DeviceArray2D</a>&lt; T &gt;::download </td>
          <td>(</td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>host_ptr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>host_step</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Downloads data from internal buffer to CPU memory. User is resposible for correct host buffer size. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">host_ptr</td><td>pointer to host buffer to download <br  />
 </td></tr>
    <tr><td class="paramname">host_step</td><td>stride between two consecutive rows in bytes for host buffer <br  />
 </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;{ <a class="code" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a11f9cbf4e4809268d52323e6e52a63f3">DeviceMemory2D::download</a>( host_ptr, host_step ); }</div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory2_d_html_a11f9cbf4e4809268d52323e6e52a63f3"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory2_d.html#a11f9cbf4e4809268d52323e6e52a63f3">pcl::gpu::DeviceMemory2D::download</a></div><div class="ttdeci">void download(void *host_ptr_arg, size_t host_step_arg) const</div><div class="ttdoc">Downloads data from internal buffer to CPU memory. User is resposible for correct host buffer size.</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a88a762589a04a71d577ec51521a2eaa9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a88a762589a04a71d577ec51521a2eaa9">&#9670;&nbsp;</a></span>ptr() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">T * <a class="el" href="classpcl_1_1gpu_1_1_device_array2_d.html">pcl::gpu::DeviceArray2D</a>&lt; T &gt;::ptr </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y</em> = <code>0</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns pointer to given row in internal buffer. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">y</td><td>row index <br  />
 </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;{ <span class="keywordflow">return</span> DeviceMemory2D::ptr&lt;T&gt;(y); }</div>
</div><!-- fragment -->
</div>
</div>
<a id="a5210d69162bdac03727c46456f0a9324"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5210d69162bdac03727c46456f0a9324">&#9670;&nbsp;</a></span>ptr() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const T * <a class="el" href="classpcl_1_1gpu_1_1_device_array2_d.html">pcl::gpu::DeviceArray2D</a>&lt; T &gt;::ptr </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y</em> = <code>0</code></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns const pointer to given row in internal buffer. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">y</td><td>row index <br  />
 </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;{ <span class="keywordflow">return</span> DeviceMemory2D::ptr&lt;T&gt;(y); }</div>
</div><!-- fragment -->
</div>
</div>
<a id="a4eacca5621b230625b93ea5daa40cc38"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4eacca5621b230625b93ea5daa40cc38">&#9670;&nbsp;</a></span>swap()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classpcl_1_1gpu_1_1_device_array2_d.html">pcl::gpu::DeviceArray2D</a>&lt; T &gt;::swap </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classpcl_1_1gpu_1_1_device_array2_d.html">DeviceArray2D</a>&lt; T &gt; &amp;&#160;</td>
          <td class="paramname"><em>other_arg</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Performs swap of data pointed with another device array. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">other_arg</td><td>device array to swap with <br  />
 </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;{ <a class="code" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a17a2b3c9f026bbf7438c01cd905e0003">DeviceMemory2D::swap</a>(other_arg); }</div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory2_d_html_a17a2b3c9f026bbf7438c01cd905e0003"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory2_d.html#a17a2b3c9f026bbf7438c01cd905e0003">pcl::gpu::DeviceMemory2D::swap</a></div><div class="ttdeci">void swap(DeviceMemory2D &amp;other_arg)</div><div class="ttdoc">Performs swap of data pointed with another device memory.</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a1efe4af839046f6f3a481befc6494d7b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1efe4af839046f6f3a481befc6494d7b">&#9670;&nbsp;</a></span>upload() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
<div class="memtemplate">
template&lt;class A &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classpcl_1_1gpu_1_1_device_array2_d.html">pcl::gpu::DeviceArray2D</a>&lt; T &gt;::upload </td>
          <td>(</td>
          <td class="paramtype">const std::vector&lt; T, A &gt; &amp;&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>cols</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Uploads data to internal buffer in GPU memory. It calls <a class="el" href="classpcl_1_1gpu_1_1_device_array2_d.html#a7d08a86e9025af4257e382b0c4813bb8" title="Allocates internal buffer in GPU memory. If internal buffer was created before the function recreates...">create()</a> inside to ensure that intenal buffer size is enough. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">data</td><td>host vector to upload from <br  />
 </td></tr>
    <tr><td class="paramname">cols</td><td>stride in elements between two consecutive rows for host buffer </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;{ <a class="code" href="classpcl_1_1gpu_1_1_device_array2_d.html#ab81307510c41ba799ad755ba3ca9ec65">upload</a>(&amp;data[0], <a class="code" href="classpcl_1_1gpu_1_1_device_array2_d.html#a742e5df59300e02c16e5d60ff70507e9">cols</a> * elem_size, data.size()/<a class="code" href="classpcl_1_1gpu_1_1_device_array2_d.html#a742e5df59300e02c16e5d60ff70507e9">cols</a>, <a class="code" href="classpcl_1_1gpu_1_1_device_array2_d.html#a742e5df59300e02c16e5d60ff70507e9">cols</a>); }</div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_array2_d_html_ab81307510c41ba799ad755ba3ca9ec65"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_array2_d.html#ab81307510c41ba799ad755ba3ca9ec65">pcl::gpu::DeviceArray2D::upload</a></div><div class="ttdeci">void upload(const void *host_ptr, size_t host_step, int rows, int cols)</div><div class="ttdoc">Uploads data to internal buffer in GPU memory. It calls create() inside to ensure that intenal buffer...</div><div class="ttdef"><b>Definition:</b> device_array.hpp:90</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="ab81307510c41ba799ad755ba3ca9ec65"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab81307510c41ba799ad755ba3ca9ec65">&#9670;&nbsp;</a></span>upload() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classpcl_1_1gpu_1_1_device_array2_d.html">pcl::gpu::DeviceArray2D</a>&lt; T &gt;::upload </td>
          <td>(</td>
          <td class="paramtype">const void *&#160;</td>
          <td class="paramname"><em>host_ptr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>host_step</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>rows</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>cols</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Uploads data to internal buffer in GPU memory. It calls <a class="el" href="classpcl_1_1gpu_1_1_device_array2_d.html#a7d08a86e9025af4257e382b0c4813bb8" title="Allocates internal buffer in GPU memory. If internal buffer was created before the function recreates...">create()</a> inside to ensure that intenal buffer size is enough. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">host_ptr</td><td>pointer to host buffer to upload <br  />
 </td></tr>
    <tr><td class="paramname">host_step</td><td>stride between two consecutive rows in bytes for host buffer </td></tr>
    <tr><td class="paramname">rows</td><td>number of rows to upload </td></tr>
    <tr><td class="paramname">cols</td><td>number of elements in each row </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;{ <a class="code" href="classpcl_1_1gpu_1_1_device_memory2_d.html#af0d12aab6d2bea03fc7dcdd5974d3bf4">DeviceMemory2D::upload</a>(host_ptr, host_step, <a class="code" href="classpcl_1_1gpu_1_1_device_array2_d.html#a4080acdcf546b3a92bcabc64efe9e146">rows</a>, <a class="code" href="classpcl_1_1gpu_1_1_device_array2_d.html#a742e5df59300e02c16e5d60ff70507e9">cols</a> * elem_size); }</div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory2_d_html_af0d12aab6d2bea03fc7dcdd5974d3bf4"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory2_d.html#af0d12aab6d2bea03fc7dcdd5974d3bf4">pcl::gpu::DeviceMemory2D::upload</a></div><div class="ttdeci">void upload(const void *host_ptr_arg, size_t host_step_arg, int rows_arg, int colsBytes_arg)</div><div class="ttdoc">Uploads data to internal buffer in GPU memory. It calls create() inside to ensure that intenal buffer...</div></div>
</div><!-- fragment -->
</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>gpu/containers/include/pcl/gpu/containers/<a class="el" href="device__array_8h_source.html">device_array.h</a></li>
<li>gpu/containers/include/pcl/gpu/containers/impl/<a class="el" href="device__array_8hpp_source.html">device_array.hpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>pcl</b></li><li class="navelem"><b>gpu</b></li><li class="navelem"><a class="el" href="classpcl_1_1gpu_1_1_device_array2_d.html">DeviceArray2D</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
